﻿@{
    ViewBag.Title = "AddProduct";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

@section scripts
{
    <script type="text/javascript" src="~/Scripts/App/Admin/product_add.js"></script>
}

<div class="content-header">
    <div class="header-section">
        <h1>
            <i class="gi gi-certificate"></i>Quản Lý Giải Thưởng
            <br>
            <small>Tạo Tài Khoản Mới</small>
        </h1>
    </div>
</div>

<ul class="breadcrumb breadcrumb-top">
    <li><a href="../Admin/index"><i class="fa fa-home"></i></a></li>
    <li><a href="../Admin/ListPublisher">Giải Thưởng</a></li>
    <li><a href="../Admin/AddPublisher">Tạo Mới</a></li>
</ul>

<div class="block block-alt-noborder" id="top-addpub">
    <form class="form-horizontal form-bordered" novalidate="novalidate" id="addpro_frm">
        <div class="form-group">
            <label for="val_title" class="col-md-4 control-label">Tên Giải Thưởng<span class="text-danger">*</span></label>
            <div class="col-md-6">
                <div class="input-group">
                    <input type="text" data-bind="value: Name" placeholder="Huy đẹp trai" class="form-control" name="val_name" id="val_name">
                    <span class="input-group-addon"><i class="gi gi-nameplate"></i></span>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label for="val_pname" class="col-md-4 control-label">Số Điểm<span class="text-danger">*</span></label>
            <div class="col-md-6">
                <div class="input-group">
                    <input type="text" placeholder="" data-bind="value: Score" class="form-control" name="val_score" id="val_score">
                    <span class="input-group-addon"><i class="gi gi-playing_dices"></i></span>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label for="val_title" class="col-md-4 control-label">Số Lượng<span class="text-danger">*</span></label>
            <div class="col-md-6">
                <div class="input-group">
                    <input type="text" data-bind="value: Quantity" placeholder="" class="form-control" name="val_quantity" id="val_quantity">
                    <span class="input-group-addon"><i class="gi gi-nameplate"></i></span>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label for="val_icon" class="col-md-4 control-label">Loại Icon<span class="text-danger">*</span></label>
            <div class="col-md-6">
                <img id="prethum" height="187" width="300"  alt="Preview Thumbail">
                <div class="input-group">
                    <input accept="image/*" type="file" data-bind="fileUpload: { property: 'ProductImg', url: '/api/AdminProduct/PostProductWithImg' }" class="form-control" name="val_icon" id="val_icon">
                    <span class="input-group-addon"><i class="gi gi-playing_dices"></i></span>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label for="val_title" class="col-md-4 control-label">Miêu Tả Chi Tiết<span class="text-danger">*</span></label>
            <div class="col-md-6">
                <textarea class="form-control ckeditor" name="val_des" id="val_des" rows="6"></textarea>
            </div>
        </div>

        <div class="form-actions form-group">
            <div class="col-md-8 col-md-offset-4">
                <button class="btn btn-sm btn-primary" id="btn_submit" type="submit">Tạo</button>
                <a class="btn btn-sm btn-primary" href="~/Admin/ListProduct">Trở Về</a>
            </div>
        </div>
    </form>
</div>
